﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using MaxStudio.Concrete.DBUtility;
using MaxStudio.Concrete.Server.Dao;

namespace MaxStudio.Concrete.Server.Interface
{
    interface IProduct
    {
        OperationResult<List<tb_Product>> GetAllProduct();
        OperationResult<tb_Product> GetProductById(int id);
        OperationResult<List<tb_Product>> GetProductByCategoryId(int categoryId);
        OperationResult<tb_Product> CreateProduct(tb_Product entity);
        OperationResult<tb_Product> ModifyProduct(tb_Product entity);
        OperationResult<tb_Product> DeleteProduct(tb_Product entity);

        OperationResult<tb_Mapping_RMProduct> CreateProductMappingWithRM(tb_Mapping_RMProduct entity);
        OperationResult<tb_Mapping_RMProduct> DeleteProductMappingWithRM(int productId);
        OperationResult<List<tb_Mapping_RMProduct>> GetProductRMMappingByProductId(int productId); 
    }
}
